﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LbangCMS.ViewModels
{
    public class NewsModel
    {
        public int ID { get; set; }
        public string Title { get; set; }

        public string Summary { get; set; }

        public string Body { get; set; }

        public string Source { get; set; }

        public string PublishTime { get; set; }

        public string CategoryName { get; set; }

        public int CategoryId { get; set; }

        public string ConverSrc { get; set; }
    }

    public class NewsListModel
    {
        public int PageIndex { get; set; }
        public int TotalPage { get; set; }

        public List<NewsModel> News { get; set; }

        public List<NewCategoryModel> Categories { get; set; }
    }

    public class NewCategoryModel
    {
        public int ID { get; set; }
        public string Name { get; set; }

        public int SortIndex { get; set; }
    }

    public class NewCategoryListModel
    {
        public List<NewCategoryModel> NewsCategories { get; set; }
        public int CurrentCategoryId { get; set; }
    }

}
